﻿using Common;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web; 

namespace hhg.Video.Config
{
	public static class ConfigHelper
	{
		public static CrawlerConfig GetCrawlerConfig()
		{
			var fileCurrentDirectory = System.Environment.CurrentDirectory;
			var filePath = fileCurrentDirectory+"\\Config\\config.json";
			return System.IO.File.ReadAllText(filePath, Encoding.GetEncoding("gbk")).DeserializeObject<CrawlerConfig>();

		}
	}
}